package cj.web.activity.domain;
import java.io.Serializable;

/*
 *  
 *  
*/
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import cj.web.admin.domain.DataTablePage;

/**
 * TODO: add class/table comments
 */
public class Gift extends DataTablePage implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = -291360160241283560L;
	protected Integer id;
	protected String name;
	protected String link;
	protected String imgURL;
	protected Integer sellerId;
	protected Integer orderId;
	protected Integer deleteFlag;
	protected String createAT;
	protected String updateAT;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}
	public String getImgURL() {
		return imgURL;
	}
	public void setImgURL(String imgURL) {
		this.imgURL = imgURL;
	}
	public Integer getSellerId() {
		return sellerId;
	}
	public void setSellerId(Integer sellerId) {
		this.sellerId = sellerId;
	}
	public Integer getOrderId() {
		return orderId;
	}
	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	public Integer getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	public String getCreateAT() {
		return createAT;
	}
	public void setCreateAT(String createAT) {
		this.createAT = createAT;
	}
	public String getUpdateAT() {
		return updateAT;
	}
	public void setUpdateAT(String updateAT) {
		this.updateAT = updateAT;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((createAT == null) ? 0 : createAT.hashCode());
		result = prime * result + ((deleteFlag == null) ? 0 : deleteFlag.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((imgURL == null) ? 0 : imgURL.hashCode());
		result = prime * result + ((link == null) ? 0 : link.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((orderId == null) ? 0 : orderId.hashCode());
		result = prime * result + ((sellerId == null) ? 0 : sellerId.hashCode());
		result = prime * result + ((updateAT == null) ? 0 : updateAT.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		Gift other = (Gift) obj;
		if (createAT == null) {
			if (other.createAT != null)
				return false;
		} else if (!createAT.equals(other.createAT))
			return false;
		if (deleteFlag == null) {
			if (other.deleteFlag != null)
				return false;
		} else if (!deleteFlag.equals(other.deleteFlag))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (imgURL == null) {
			if (other.imgURL != null)
				return false;
		} else if (!imgURL.equals(other.imgURL))
			return false;
		if (link == null) {
			if (other.link != null)
				return false;
		} else if (!link.equals(other.link))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (orderId == null) {
			if (other.orderId != null)
				return false;
		} else if (!orderId.equals(other.orderId))
			return false;
		if (sellerId == null) {
			if (other.sellerId != null)
				return false;
		} else if (!sellerId.equals(other.sellerId))
			return false;
		if (updateAT == null) {
			if (other.updateAT != null)
				return false;
		} else if (!updateAT.equals(other.updateAT))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Gift [id=" + id + ", name=" + name + ", link=" + link + ", imgURL=" + imgURL + ", sellerId=" + sellerId
				+ ", orderId=" + orderId + ", deleteFlag=" + deleteFlag + ", createAT=" + createAT + ", updateAT="
				+ updateAT + "]";
	}
	
	

}
